package com.koron.css2.serviceManage.utils;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * slf4j输出日志类
 * @author 陈维杰
 *
 */
public class LogUtils {
	/**
	 * 日志类
	 */
	static Logger logger = LogManager.getLogger(LogUtils.class);
	/**
	 * 记录异常信息
	 * @param msg
	 * @param t
	 */
	public static void error(String msg,Throwable t) {
		logger.error(msg, t);;
	}
	/**
	 * 输出debug级别日志
	 * @param object
	 */
	public static void debug(Object object) {
		logger.debug("{}", object);
	}
	/**
	 * 输出info级别日志
	 * @param object
	 */
	public static void info(Object object) {
		logger.info("{}", object);
	}
}
